package com.zqx.combination.leafcomponent;

import com.zqx.combination.abcomponent.AbstractFile;
import lombok.extern.slf4j.Slf4j;


/**
 * description: 叶子构件类
 * @author zqx
 * @date 2018/09/03
 */
@Slf4j
public class VideoFile extends AbstractFile {

    private String name;

    public VideoFile(String name) {
        this.name = name;
    }

    @Override
    public void add(AbstractFile file) {
        log.info("sorry,不支持该方法");
    }

    @Override
    public void remove(AbstractFile file) {
        log.info("sorry,不支持该方法");
    }

    @Override
    public AbstractFile getChile(int i) {
        log.info("sorry,不支持该方法");
        return null;
    }

    @Override
    public void killVirus() {
        //模拟杀毒
        log.info("对视频文件"+name+"进行杀毒");
    }
}
